package com.ysx.oa.student.service.impl;

import com.ysx.oa.student.bean.StudentBean;
import com.ysx.oa.student.dao.StudentDao;
import com.ysx.oa.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao dao;

    @Override
    public StudentBean findById(Integer id) {
        StudentBean bean=new StudentBean();
        bean.setId(10010);
        return dao.selectOne(bean);
    }

    @Override
    public int add(StudentBean bean) {
        return dao.insert(bean);
    }
}
